From 6bc3ecbe56fb83a530e017bd34c1bfdc803081dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Tue, 10 May 2022 00:21:40 +0200 Subject: [PATCH] glcontext: Improve get_version documentation --- gdk/gdkglcontext.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c index c566f75e06..8f9fe25396 100644 --- a/gdk/gdkglcontext.c +++ b/gdk/gdkglcontext.c @@ -1676,6 +1676,10 @@ gdk_gl_context_get_shared_context (GdkGLContext *context) * Retrieves the OpenGL version of the @context. * * The @context must be realized prior to calling this function. + * + * If the @context has never been made current, the version cannot + * be known and it will return 0 for both @major and @minor. + * */ void gdk_gl_context_get_version (GdkGLContext *context, -- 2.30.2